package com.yft.service.pos_information;

import com.yft.dao.pos_information.PosModelDao;
import com.yft.entity.base.Order;
import com.yft.entity.base.Pager;
import com.yft.entity.posinformation.PosModel;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("posModelService")
public class PosModelServiceImp implements PosModelService {
	Logger log = Logger.getLogger(PosModelServiceImp.class);
	
	@Autowired(required = true)
	private PosModelDao posModelDao;

    @Override
    public Object addPosModel(PosModel posModel) {
        return posModelDao.addPosModel(posModel);
    }

    @Override
    public PosModel getPosModel(Integer posModelPk) {
        return posModelDao.getPosModel(posModelPk);
    }

    @Override
    public boolean updateValues(PosModel condition, String cumstomStr) {
        return posModelDao.updateValues(condition,cumstomStr);
    }

    @Override
    public List<PosModel> getPosModelList(PosModel condition, Order order, Pager pager) {
        return posModelDao.getPosModelList(condition,order,pager);
    }
}
